org.eclipse.vtp.framework.common.configurations
Class BrandConfiguration

java.lang.Object
  extended by org.eclipse.vtp.framework.common.configurations.BrandConfiguration
All Implemented Interfaces:
CommonConstants, IConfiguration

public class BrandConfiguration
extends java.lang.Object
implements IConfiguration, CommonConstants

A configuration for an entry in the brand registry.

Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.framework.common.configurations.CommonConstants
MAPPING_TYPE_EXPRESSION, MAPPING_TYPE_NONE, MAPPING_TYPE_STATIC, MAPPING_TYPE_VARIABLE, NAME_ASSIGNMENT, NAME_BRANCH, NAME_BRAND, NAME_DATA_TYPE, NAME_DISPATCH, NAME_ENTRY, NAME_EXIT, NAME_FIELD, NAME_INITIAL_VALUE, NAME_KEY, NAME_LEFT_OPERAND, NAME_NAME, NAME_OUTGOING, NAME_PATH, NAME_PRIMARY_FIELD, NAME_RIGHT_OPERAND, NAME_SCRIPT, NAME_SCRIPTING_LANGUGAGE, NAME_TYPE, NAME_URI, NAME_VALUE, NAME_VARIABLE_MAPPING, NAMESPACE_URI
 
Constructor Summary
BrandConfiguration()
          Creates a new BrandRegistryConfiguration.
 
Method Summary
 void addChild(BrandConfiguration child)
          Adds a child to this brand.
 BrandConfiguration[] getChildren()
          Returns the children of this brand.
 java.lang.String getName()
          Returns the name of this brand.
 void load(org.w3c.dom.Element configurationElement)
          Loads the configuration information from the specified XML element.
 void removeChild(BrandConfiguration child)
          Removes a child from this brand.
 void save(org.w3c.dom.Element configurationElement)
          Saves the configuration information into the supplied XML element.
 void setName(java.lang.String name)
          Sets the name of this brand.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrandConfiguration

public BrandConfiguration()
Creates a new BrandRegistryConfiguration.

Method Detail

getName

public java.lang.String getName()
Returns the name of this brand.

Returns:
The name of this brand.

setName

public void setName(java.lang.String name)
Sets the name of this brand.

Parameters:
name - The name to name of this brand.

getChildren

public BrandConfiguration[] getChildren()
Returns the children of this brand.

Returns:
The children of this brand.

addChild

public void addChild(BrandConfiguration child)
Adds a child to this brand.

Parameters:
child - The child to add.

removeChild

public void removeChild(BrandConfiguration child)
Removes a child from this brand.

Parameters:
child - The child to remove.

load

public void load(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Loads the configuration information from the specified XML element.

Specified by:
load in interface IConfiguration
Parameters:
configurationElement - The element to load the configuration from.

save

public void save(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Saves the configuration information into the supplied XML element.

Specified by:
save in interface IConfiguration
Parameters:
configurationElement - The element to save the configuration to.